<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<title>瞎聊APP-发表</title>
		<link rel="stylesheet" type="text/css" href="../css/publish-style.css"/>
	</head>
	<body>
		<!-- 表单：配合js使用FormData格式化，ajax异步提交 -->
		<!-- enctype="multipart/form-data" 多文件提交 -->
		<form id="form_file" enctype="multipart/form-data" th:action="@{/publishadmin}" th:method="post">
			<div class="head">
				<a href="#" class="cancle" id="cancle">取消</a>
				<p class="title">瞎聊几句</p>
				<!--<a class="publish" id="publish">发表</a>-->
				<button type="submit" name="submit" class="publish" id="publish">发表</button>

			</div>
			<div class="publish-content">
				<textarea name="content_txt" maxlength="50" required="required" placeholder="请输入瞎聊的鲜事..." class="publish-content-txt" id="publish-content-txt" ></textarea>
			</div>
		</form>

		<!-- 图片选择及缩略图显示 -->
			<a href="javascript:;" id="a-upload" class="a-upload">
				<input type="file" required="required" name="publish-content-img" id="publish-content-img" />点击这里上传图片
			</a>
			<div class="pic-show">
				<img src="../img/photo.png" id="pic-show">
			</div>
	</body>
	
	<!-- 引入juqery -->
	<script src="../js/jquery-1.10.2.min.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		
	
		
	</script>
	
</html>
